using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Rules;
using Northwoods.Go;
using Workflows.Components.Rules;

namespace Rules.Diagram
{
    public class RuleToolBoxItemHelper
    {
        public static RuleNode CreateToolboxItem(RuleNodeType ruleNodeType, string ruleName, string tooltip, string imageName)
        {
            RuleNode ruleNode=new RuleNode(ruleNodeType);
            ruleNode.Text = ruleName;
            //GoImage goImg =new GoImage();
            //goImg.Image = Properties.Resources.Edit;
           // ruleNode.Image = goImg;
            ruleNode.Image.Name = imageName;
            return ruleNode;
        }
    }
}
